how to check a given function injective surjective or bijective